<template>
    <div>测试请求</div>
    <div>测试请求</div>
    <form action="" @submit="handleSubmit($event)">
        <input type="text" @input="inputchange('change')">
    </form>
    <AttrsC v-bind="$attrs"></AttrsC>
</template>

<script setup lang="ts">
import { service } from '@/api/url';
import * as AttrsC from './AttrsC.vue';
// defineOptions({
//     name: 'RequestTest'
// })
const inputchange = function (e: any) {
    console.log('+666');
};
const handleSubmit = function (e: any) {
    console.log('+6616');
};
const getData = function () {
    service.testRequest().then((res: any) => {
        console.log('测试请求get', res);
    });
    service.testRequest1().then((res: any) => {
        console.log('测试请求get1', res);
    });
    service.testRequest2().then((res: any) => {
        console.log('测试请求get2', res);
    });
};
// getData()
// getData()
</script>